package com.gbiac.modules.monitor.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.gbiac.modules.monitor.entity.Rule;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gbiac.modules.monitor.model.dto.AttendanceDTO;
import com.gbiac.modules.monitor.param.RuleSaveParam;

import java.util.List;
import java.util.Map;

/**
 * @Description: 规则配置
 * @Author: jeecg-boot
 * @Date:   2024-11-30
 * @Version: V1.0
 */
public interface IRuleService extends IService<Rule> {

    /**
     * 规则保存
     * @param param
     */
    void save(RuleSaveParam param);

    /**
     * 获取规则值
     * @param key
     * @return
     */
    String getRuleVal(String key);

    /**
     * 获取最新规则列表
     * @param queryWrapper
     * @return
     */
    List<Rule> listLastRule(Wrapper<Rule> queryWrapper);

    AttendanceDTO queryAttendanceByOrg(String orgCode);

}
